import request from '@/utils/request'

// 查询活动录入列表
export function listDetail(query) {
  return request({
    url: '/event/detail/list',
    method: 'get',
    params: query
  })
}

// 查询活动录入详细
export function getDetail(id) {
  return request({
    url: '/event/detail/' + id,
    method: 'get'
  })
}

// 新增活动录入
export function addDetail(data) {
  return request({
    url: '/event/detail',
    method: 'post',
    data: data
  })
}

// 修改活动录入
export function updateDetail(data) {
  return request({
    url: '/event/detail',
    method: 'put',
    data: data
  })
}

// 删除活动录入
export function delDetail(id) {
  return request({
    url: '/event/detail/' + id,
    method: 'delete'
  })
}

export function eventDict() {
  return request({
    url: '/event/detail/eventDict',
    method: 'get'
  })
}
export function changeShow(data) {
  return request({
    url: '/event/detail/changeShow',
    method: 'put',
    data: data
  })
}
